package com.service.impl;

import com.dao.CarouselNoticeDao;
import com.entity.AnnouncementInfo;
import com.entity.BannerInfo;
import com.service.CarouselNoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CarouselNoticeServiceimpl implements CarouselNoticeService {

    @Autowired
    private CarouselNoticeDao carouselNoticeDao;

    @Override
    public List<BannerInfo> findBanner(Integer type) {
        return carouselNoticeDao.findBanner(type);
    }

    @Override
    public List<AnnouncementInfo> findAnnouncement(Integer type) {
        return carouselNoticeDao.findAnnouncement(type);
    }
}
